package com.tao.entity;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

@Data
public class UserEntity {
    private String userName;
    private Integer age;
    private Integer id;

    public  UserEntity(){

    }
    public UserEntity(Integer id,String userName, Integer age) {
        this.userName = userName;
        this.age = age;
        this.id = id;
    }
    public UserEntity(String userName, Integer age) {
        this.userName = userName;
        this.age = age;
    }

//    public String getUserName() {
//        return userName;
//    }
//
//    public void setUserName(String userName) {
//        this.userName = userName;
//    }
//
//    public Integer getAge() {
//        return age;
//    }
//
//    public void setAge(Integer age) {
//        this.age = age;
//    }
//


    public static void main(String[] args) {
        UserEntity userEntity = new UserEntity();
        userEntity.setUserName("taozi");
        System.out.println("userName:"+userEntity.getUserName());
    }
}

